/**
 * Created by fengliu on 15/8/28.
 */
var path = require('path');
var node_modules = path.resolve(__dirname, 'node_modules');


var config = {
    entry:  path.resolve(__dirname, 'app/main.js'),

    output: {
        path: path.resolve(__dirname, 'build'),
        filename: 'bundle.js',
    },
    module: {
        loaders: [
            {
                test: /\.js?$/,
                exclude:[node_modules],
                loader: 'babel'
            }, {
                test: /\.css$/,
                exclude:[node_modules],
                loader: 'style!css'
            }
        ]
    }
};
module.exports = config;